<?php
class Tuyenbay_model extends CI_Model{
    private $tbl='tuyenbay';
    function __construct() {
        parent::__construct();
    }
    function load_by_id($MSTB){
        $DB=$this->load->database('khachhang',TRUE);
        return $DB->get_where($this->tbl,array('MSTB'=>$MSTB));
    }
    function load_by_ga($MSG_di,$MSG_den) {
        $DB=$this->load->database('nhanvien',TRUE);
        return $DB->get_where($this->tbl,array('MSG_di'=>$MSG_di,'MSG_den'=>$MSG_den));
    }
}